package com.tanhua.server.job;

import com.tanhua.dubbo.api.VoiceApi;
import com.tanhua.server.service.VoiceService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AnalysisJob {
    @Autowired
    private VoiceService voiceService;

    @Scheduled(cron = "0 0 0 */1 * ?")  // 定时执行的方法
    public void analysisJob(){
        voiceService.updateremainingTimes();
    }
}
